/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test;

import java.awt.Dimension;
import javax.swing.JPanel;
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;

/**
 *
 * @author fightfxj
 */
public class MyChartFrame  extends ApplicationFrame {
    
    public MyChartFrame(String s) {
        super(s);
    }
    
    public void setPanel(JPanel jp) {
        jp.setPreferredSize(new Dimension(500, 270));
        setContentPane(jp);
        pack();
        RefineryUtilities.centerFrameOnScreen(this);
        setVisible(true);
    }
}
